package com.sip.stream.media;

import com.google.gson.GsonBuilder;

public class ZFYCameraParameters {
    //预览宽高
    private int previewWidth = 640;
    private int previewHeight = 360;
    //录制宽高
    private int videoWidth = 1920;
    private int videoHeight = 1080;
    //录制帧率
    private int videoFps = 30;
    //袁成调度宽高
    private int remoteWidth = 1280;
    private int remoteHeight = 720;
    //远程调度FPS
    private int remoteFps = 15;
    //拍照宽高
    private int captrueWidth = 1920;
    private int captrueHeight = 1080;
    //远程帧过滤器
    private int remoteFrameFilter = 0;

    public int getPreviewWidth() {
        return this.previewWidth;
    }

    public void setPreviewWidth(int previewWidth) {
        this.previewWidth = previewWidth;
    }

    public int getPreviewHeight() {
        return this.previewHeight;
    }

    public void setPreviewHeight(int previewHeight) {
        this.previewHeight = previewHeight;
    }

    public int getVideoHeight() {
        return this.videoHeight;
    }

    public void setVideoHeight(int videoHeight) {
        this.videoHeight = videoHeight;
    }

    public int getRemoteWidth() {
        return this.remoteWidth;
    }

    public void setRemoteWidth(int remoteWidth) {
        this.remoteWidth = remoteWidth;
    }

    public int getRemoteHeight() {
        return this.remoteHeight;
    }

    public void setRemoteHeight(int remoteHeight) {
        this.remoteHeight = remoteHeight;
    }

    public int getCaptrueWidth() {
        return this.captrueWidth;
    }

    public void setCaptrueWidth(int captrueWidth) {
        this.captrueWidth = captrueWidth;
    }

    public int getCaptrueHeight() {
        return this.captrueHeight;
    }

    public void setCaptrueHeight(int captrueHeight) {
        this.captrueHeight = captrueHeight;
    }

    public int getVideoWidth() {
        return this.videoWidth;
    }

    public void setVideoWidth(int videoWidth) {
        this.videoWidth = videoWidth;
    }

    public int getRemoteFrameFilter() {
        return this.remoteFrameFilter;
    }

    public void setRemoteFrameFilter(int remoteFrameFilter) {
        this.remoteFrameFilter = remoteFrameFilter;
    }

    public void deepCopy(ZFYCameraParameters zFYCameraParameters) {
        this.previewWidth = zFYCameraParameters.getPreviewWidth();
        this.previewHeight = zFYCameraParameters.getPreviewHeight();
        this.videoHeight = zFYCameraParameters.getVideoHeight();
        this.videoWidth = zFYCameraParameters.getVideoWidth();
        this.remoteHeight = zFYCameraParameters.getRemoteHeight();
        this.remoteWidth = zFYCameraParameters.getRemoteWidth();
        this.captrueHeight = zFYCameraParameters.getCaptrueHeight();
        this.captrueWidth = zFYCameraParameters.getCaptrueWidth();
        this.remoteFrameFilter = zFYCameraParameters.getRemoteFrameFilter();
    }

    public int getRemoteFps() {
        return this.remoteFps;
    }

    public void setRemoteFps(int remoteFps) {
        this.remoteFps = remoteFps;
    }

    public int getVideoFps() {
        return this.videoFps;
    }

    public void setVideoFps(int videoFps) {
        this.videoFps = videoFps;
    }

    public String toString() {
        return new GsonBuilder().setPrettyPrinting().create().toJson(this);
    }
}
